package com.nightpiter.view.graphics;

import com.nightpiter.view.graphics.abstaractions.AbstractCanvas;
import com.nightpiter.view.graphics.abstaractions.Delegator;

public class Canvas extends Delegator<AbstractCanvas> implements AbstractCanvas {

	public Canvas(AbstractCanvas canvas) {
		setDelegate(canvas);
	}
	
	public void drawLine(float startX, float startY, float stopX, float stopY,
			Paint paint) {
		getDelegate().drawLine(startX, startY, stopX, stopY, paint);
	}

	public void drawPoint(float x, float y, Paint paint) {
		getDelegate().drawPoint(x, y, paint);
	}

	public void drawLine(PointF start, PointF stop, Paint paint) {
		getDelegate().drawLine(start.x, start.y, stop.x, stop.y, paint);
	}

	public void drawPoint(PointF pointF, Paint paint) {
		getDelegate().drawPoint(pointF.x, pointF.y, paint);
	}

	public void drawText(String text, float x, float y, Paint paint) {
		getDelegate().drawText(text, x, y, paint);
	}

	public void drawArc(RectF oval, float startAngle, float sweepAngle,
			Paint paint) {
		getDelegate().drawArc(oval, startAngle, sweepAngle, paint);
	}

	public void drawCircle(float cx, float cy, float radius, Paint paint) {
		getDelegate().drawCircle(cx, cy, radius, paint);
	}

	public void drawCircle(PointF pointF, float radius, Paint paint) {
		getDelegate().drawCircle(pointF.x, pointF.y, radius, paint);
	}

	public void translate(float dx, float dy) {
		getDelegate().translate(dx, dy);
	}

	public void scale(float sx, float sy) {
		getDelegate().scale(sx, sy);
	}

//	public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
//		getDelegate().drawBitmap(bitmap, src, dst, paint);
//	}

}
